package com.np.viewbinding1;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import com.np.viewbinding1.databinding.ActivityFirstBinding;

public class FirstActivity extends AppCompatActivity {
    private ActivityFirstBinding mBinding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //setContentView(R.layout.activity_first);
        mBinding = ActivityFirstBinding.inflate(getLayoutInflater());
        setContentView(mBinding.getRoot());

        mBinding.textView1.setText("1");
    }
}